import Taro from "@tarojs/taro";
// 环境变量(WEB,WEAPP,)
const envType = Taro.getEnv();
// console.log(`envType:${envType}`)

// 根据环境变量判断
let WxApiRoot = "";
if (envType === "WEAPP") {
  WxApiRoot = "http://118.31.36.89:9925/api";
} else {
  // H5和其他
  WxApiRoot = "/api";
}

export default WxApiRoot;
